import request from '@/utils/request'

// 查询房间计费列表
export function listHlprice(query) {
  return request({
    url: '/hotel/hlprice/list',
    method: 'get',
    params: query
  })
}

// 查询房间计费详细
export function getHlprice(id) {
  return request({
    url: '/hotel/hlprice/' + id,
    method: 'get'
  })
}

// 新增房间计费
export function addHlprice(data) {
  return request({
    url: '/hotel/hlprice',
    method: 'post',
    data: data
  })
}

// 修改房间计费
export function updateHlprice(data) {
  return request({
    url: '/hotel/hlprice',
    method: 'put',
    data: data
  })
}

// 删除房间计费
export function delHlprice(id) {
  return request({
    url: '/hotel/hlprice/' + id,
    method: 'delete'
  })
}
